package com.financial.service.heemoney.controller.refund;

import com.financial.service.heemoney.dto.inparameter.HeemoneyRefundInParamDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneyRefundQueryInParamDTO;
import com.financial.service.heemoney.service.FinancialRefundHeemoneyService;
import com.financial.service.heemoney.utils.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 汇收银退款申请主表
 * 
 * @author zhaopengjun
 * @email dashuaizhao@aliyun.com
 * @date 2020-03-29 13:08:40
 */
 
@RestController
@RequestMapping("/heemoneyRefund")
public class HeemoneyRefundController {
	@Autowired
	private FinancialRefundHeemoneyService financialRefundHeemoneyService;

	/**
	* @Author zhaopengjun
	* @Description //TODO 汇收银退款接口
	* @Date 15:51 2020/3/25
	* @Param [heemoneyRefundInParamDTO]
	* @return com.financial.service.heemoney.utils.apiresult.ApiResult
	**/
	@PostMapping("/refund")
	public ApiResult refund(@RequestBody HeemoneyRefundInParamDTO heemoneyRefundInParamDTO) {
		return financialRefundHeemoneyService.refund(heemoneyRefundInParamDTO);
	}

	/**
	* @Author zhaopengjun
	* @Description //TODO 汇收银退款查询接口
	* @Date 15:53 2020/3/25
	* @Param [heemoneyRefundQueryInParamDTO]
	* @return com.financial.service.heemoney.utils.apiresult.ApiResult
	**/
	@PostMapping("/refundQuery")
	public ApiResult refundQuery(@RequestBody HeemoneyRefundQueryInParamDTO heemoneyRefundQueryInParamDTO) {
		return financialRefundHeemoneyService.refundQuery(heemoneyRefundQueryInParamDTO);
	}
	
}
